package com.suntine.familytree.core.framework.dao;

import java.io.Serializable;
import java.util.List;

/**
 * @corporation 
 * @author suntine
 * @creation 2011-4-14 上午11:43:55
 * @description 
 */
public abstract interface BaseDao<T extends Serializable> {
	
	abstract public T save(T entity);
	abstract public int delete (T entity);
	abstract public T findById(long id);
	abstract public int update(T entity);
	abstract public List queryByJpql(String jpql);
	abstract public List queryAll(); 
	
}
